<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/3/22 0022
 * Time: 17:02
 */
namespace app\admin\model;
use think\Db;
use think\Model;



class Consult extends Model{

    public function getlist(){
        $status = input('param.status');
        $wap['is_del'] = 0;
        if(isset($status) && $status ==0){
            $wap['status'] = $status;
        }
        $data = Db::name('consult')->where($wap)->order('status asc,id desc')->select();
        return $data;

    }






}